#include <iostream>
using namespace std;
int main()
{
	int num;
	cin >> num;
	int max = num;
	while (cin >> num)
	{
		if (num > max)
		{
			max = num;
		}
	}
	cout << max;
	return 0;

}